import { cookies } from "next/headers";
import { Dispatch, SetStateAction } from "react";

export const ItemDialog = ({ userId, id }: { userId: number, id: number }) => {

    const username = cookies().get('username')?.value || "";

    const but = {
        backgroundColor: '#00BCD4',
        padding: '2px 20px',
        borderRadius: '5px'
    };

    return <>
        <div>
            <div>
                <p>id:</p>
                {id}
                <hr />
                <p>user_id:</p>
                {userId}
                <p>name:</p>
                <hr />
                {username}
            </div>

            <button style={but} >关闭</button>
        </div>
    </>
}
